﻿@page "/Admin/Dicts"
@using BlazorAdmin.Models
@using BlazorAdmin.Web.Shared.Components
@using BlazorAdmin.Web.Shared.Models

<AdminTable TItem=Dict
            ShowCardView=false IsPagination=true
            CustomerSearchModel=DictsSearchModel SortString=@DictSortString>
    <TableColumns>
        <TableColumn @bind-Field="context.Category" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.Name" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.Code" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
        <TableColumn @bind-Field="context.Define" Filterable="true" Searchable="true" Sortable="true"></TableColumn>
    </TableColumns>
    <CustomerSearchTemplate>
        @if (context is DictsSearchModel searchModel)
        {
            <DictSearch @bind-Value="@searchModel"></DictSearch>
        }
    </CustomerSearchTemplate>
</AdminTable>
